<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<div class="returngoods">
    <p class="p_top">
        <label><!--收银员-->{{language.TIPS_CASHIER_MEN}}：</label>
        <!--控制器定义变量-->
        <span id="txt_user_code">{{record_info.is_add_person?record_info.is_add_person:language.TIPS_CASHIER_NOT_AVAILABLE}}</span>
        <label><!--VIP卡号-->{{language.TIPS_CASHIER_VIP_CODE}}：</label>
        <span id="txt_vip_code">{{record_info.vip_code?record_info.vip_code:language.TIPS_CASHIER_ORIDINARY_CUSTOMERS}}</span>
        <label><!--销售日期-->{{language.TIPS_CASHIER_SALE_DATE}}：</label>
        <span id="txt_record_time">{{record_info.record_time}}</span>
        <input type="checkbox" class="zdth" id="check_total_return" ng-model="check_total_return" ng-readonly="check_total_readonly" ng-change="total_return();" />
        <label class="zdth_label" for="check_total_return"><!--整单退货-->{{language.TIPS_CASHIER_WHOLE_LIST_RETURN}}</label>
        <input type="text" value="" ng-model="input_keyword" id="input_record_code" placeholder="{{language.TIPS_CASHIER_INPUT_BILLS_NUMBER}}" /> <!--请输入单据编号-->
        <button id="btn_receipt_search" ng-click="receipt_search();" ng-show="purview['\/CashierReturnCtrl\/receipt_search'].show == 1"></button>
        <button id="btn_receipt_more" ng-click="receipt_search_more();"><!--更多-->{{language.TIPS_CASHIER_MORE}}</button>
    </p>
    <div class="panel spmx">
        <h2><!--商品明细-->{{language.TIPS_CASHIER_DETAILED}} {{record_info.record_code?record_info.record_code:''}}</h2>
        <div class="table_wrap">
            <table class="table_spmx">
                <thead>
                    <tr>
                        <th><!--导购员-->{{language.TIPS_CASHIER_SHOPPING_GUIDE}}</th>
                        <th><!--商品-->{{language.TIPS_CASHIER_GOODS}}</th>
                        <th>SKU</th>
                        <th><!--规格-->{{language.TIPS_CASHIER_SKU}}</th>
                        <th><!--数量-->{{language.TIPS_CASHIER_NUM}}/<!--已退-->{{language.TIPS_CASHIER_RETIRED}}/<!--可退-->{{language.TIPS_CASHIER_RETURNABLE}}</th>
                        <th><!--金额-->{{language.TIPS_CASHIER_MONEY}}</th>
                      <!--  <th></th>-->
                    </tr>
                </thead>
                <tbody id="tb_goods_details">
                    <tr ng-repeat="goods in record_list track by $index" ng-click="add_to_return(goods);">
                        <td>{{goods.guide_user_name?goods.guide_user_name:'无'}}</td><!-- 此处在控制器里面写无的变量-->
                        <td>{{goods | language_filter_show:'goods_name'}}</td>
                        <td>{{goods.sku}}</td>
                        <td>{{goods.color_name}} {{goods.size_name}}</td>
                        <td>{{goods.num}} / {{goods.return_num}} / {{goods.num - goods.return_num - goods.select_num}}</td>
                        <td>{{goods.money| number:2}}</td>
                        <!--<td><span class="del_list"></span></td>-->
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="panel jsmx">
        <h2><!--结算明细-->{{language.TIPS_CASHIER_BILLING_DETAILE}}</h2>
        <div class="table_wrap">
        <ul class="mingxi" id="ul_payment">
            <li ng-repeat="payment in payment_list track by $index">{{checklistData[payment.trade_type_code].CheckName}}：<span class="amounts">￥<span class="val">{{payment.money|number:2}}</span><!--元-->{{language.TIPS_CASHIER_YUAN}}</span></li>
            <li><!--总计-->{{language.TIPS_CASHIER_TOTAL}}：<span class="amounts">￥<span class="val">{{record_info.money|number:2}}</span><!--元-->{{language.TIPS_CASHIER_YUAN}}</span></li>
            <li class="this_refund"><!--本次退款-->{{language.TIPS_CASHIER_CUR_REFUND}} <span> ￥{{return_info.money|number:2}}<!--元-->{{language.TIPS_CASHIER_YUAN}}</span></li>
        </ul>
        <p class="btn_sure_box">
            <button class="btn_sure" id="btn_return_save" ng-click="show_return_confirm();"><!--确 认-->{{language.TIPS_CASHIER_A_CONFIRM}}</button></p>
        </div>
    </div>
    <div class="panel thmx">
        <h2><!--退货明细-->{{language.TIPS_CASHIER_RETURN_SUBDI}}</h2>
        <div class="table_wrap">
            <table class="table_thmx">
                <thead>
                    <tr>
                        <!--<th>导购员{{language.TIPS_CASHIER_SHOPPING_GUIDE}}</th>-->
                        <th><!--商品-->{{language.TIPS_CASHIER_GOODS}}</th>
                        <th>SKU</th>
                        <th><!--规格-->{{language.TIPS_CASHIER_SKU}}</th>
                        <th><!--数量-->{{language.TIPS_CASHIER_NUM}}</th>
                        <th><!--参考价-->{{language.TIPS_CASHIER_REFER_PRICE}}</th>
                        <th><!--退货价-->{{language.TIPS_CASHIER_RETURN_PRICE}}</th>
                        <th><!--退货折扣-->{{language.TIPS_CASHIER_RETURN_DISCOUNT}}</th>
                        <th><!--退款金额-->{{language.TIPS_CASHIER_CURR_MONEY}}</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody id="tb_return_details">
                    <tr ng-repeat="return_goods in return_list track by $index" ng-swipe-right="remove_from_return_list($index);">
                        <!--<td>{{return_goods.user_code}}</td>-->
                        <td>{{return_goods | language_filter_show:'goods_name'}}</td>
                        <td>{{return_goods.sku}}</td>
                        <td>{{return_goods.color_name}} {{return_goods.size_name}}</td>
                        <td>{{return_goods.num}}</td>
                        <td>{{return_goods.refer_price}}</td>
                        <td>{{return_goods.avg_money|number:2}}</td>
                        <td>{{return_goods.rebate}}</td>
                        <td>{{return_goods.money|number:2}}</td>
                        <td><span class="del_list" ng-click="remove_check($index)"></span></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
